package com.ming.stringstudy.feedbacksystem.mapper;

import com.ming.stringstudy.feedbacksystem.entity.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 意见反馈 Mapper 接口
 * </p>
 *
 * @author aming
 * @since 2024-12-24
 */

public interface CommentMapper extends BaseMapper<Comment> {
    // 更新评论状态的方法
    int updateCommentStateById(Integer commentId,byte commentState);

    void commentReturn(Integer id,String return_reason);
    void commentRetrieve(Integer id);
    void commentReassign(Integer id,Integer comment_type_id);
    void commentArchive(Integer id);
    List<Comment> selectCommentReturn();
    List<Comment> selectCommentRetrieve();
    List<Comment> selectCommentArchive();
    List<Comment> selectCommentReassign();
    int getCommentTypeById(Integer id);

}
